#ifndef REPORT_H
#define REPORT_H

#include <QtGui/QWidget>
#include <QDomDocument>
#include "cdbprovider.h"
#include "WidgetTextEdit.h"

namespace Ui {
    class Report;
}

class Report : public QWidget {
    Q_OBJECT
    Q_DISABLE_COPY(Report)
public:
    explicit Report(QWidget *parent = 0);
    virtual ~Report();

protected:
    virtual void changeEvent(QEvent *e);

private:
    Ui::Report *m_ui;
    CDBProvider *db;
    TextEdit *te;
    void parseFileToBase(QString);
    void parsePageTobase(QDomElement);
    void loadTree();

private slots:
    void on_btnClearListPrint_clicked();
    void on_btnDelPrint_clicked();
    void on_btnAddPrint_clicked();
    void on_btnPrint_clicked();
    void on_btnLoadResult_clicked();
};

#endif // REPORT_H
